home *** CD-ROM | disk | FTP | other *** search
- echo off
- cls
- :restart
- echo\
- echo ┌────────────────────────────────────────────────────────────┐
- echo │ PC-Draft-CAD Installation │
- echo │ │
- echo │ This will create a PCDCAD sub-directory on your │
- echo │ current disk. To install on your current hard disk │
- echo │ │
- echo │ 1 - If you downloaded PCDCAD.ZIP (single file), │
- echo │ Unzip PCDCAD.ZIP in a temporary directory or floppy. │
- echo │ │
- echo │ 2 - Make your hard disk root directory current. │
- echo │ ie: for the C: drive: enter: [C:] and [CD \] │
- echo │ │
- echo │ 3 - Run INSTALL [sourcedir] for example, if the files are │
- echo │ in C:\TEMP, run TEMP\INSTALL C:\TEMP. If they are on │
- echo │ the A: drive, run A:INSTALL A: │
- echo │ │
- echo │ This will extract all the files from the self- │
- echo │ extracting LHARC file and will create a START.BAT │
- echo │ file apropriate for your display system. │
- echo │ │
- echo │ If you do not wish to continue, press Ctrl-C. │
- echo └────────────────────────────────────────────────────────────┘
- echo\
- pause
- if "%1"=="" goto noparm
- if exist pcdcad.exe goto badstart
- goto continue1
- :badstart
- echo You should not install to the same drive/directory that contains
- echo the PC-Draft CAD install files. Change to the root directory of
- echo your hard disk: type CD \ and try again.
- goto exitout
- :continue1
- md pcdcad
- cd pcdcad
- if exist %1\pcdcad.exe goto continue
- echo Invalid source drive or directory, Please check and try again.
- :noparm
- echo You must include the drive and directory name that has the install
- echo files. For example, enter: INSTALL A: (if the install disk is in A:)
- echo Or, enter: INSTALL C:\TEMP (if the install files are in \TEMP on C:)
- goto exitout
- :continue
- md fon
- md dwg
- md lib
- md mac
- %1\pcdcad
- copy *.fon fon
- del *.fon
- copy *.dwg dwg
- del *.dwg
- copy *.lib lib
- del *.lib
- copy *.mac mac
- del *.mac
- cls
- vidtest
- if errorlevel 7 goto HERCULES
- if errorlevel 5 goto VGACOLOR
- if errorlevel 4 goto VGAMONO
- if errorlevel 3 goto EGACOLOR
- if errorlevel 2 goto EGAMONO
- if errorlevel 1 goto CGA
- echo Error in detecting video adapter
- goto exit2
- :HERCULES
- set vtype=Hercules
- copy hgcstart.bat start.bat
- del vgadrv.com
- del cgadrv.com
- del svgadrv.com
- goto exit
- :VGACOLOR
- set vtype=VGA-Color
- goto VGA
- :EGACOLOR
- set vtype=EGA-Color
- goto VGA
- :VGAMONO
- set vtype=VGA-Mono
- copy cga.cfg draft3.cfg
- goto MONO
- :EGAMONO
- set vtype=EGA-Mono
- :MONO
- copy cga.cfg draft3.cfg
- :VGA
- copy vgastart.bat start.bat
- del hgcdrv.exe
- goto exit
- :CGA
- set vtype=CGA
- copy cgastart.bat start.bat
- copy cga.cfg draft3.cfg
- :exit
- echo You have a %vtype% type video display
- :exit2
- set src=
- set vtype=
- echo\
- echo ┌────────────────────────────────────────────────────────────┐
- echo │ Installation is complete. To start PC-Draft-CAD, enter: │
- echo │ │
- echo │ START │
- echo │ │
- echo │ To print the user manual, type: COPY DRAFT3.DOC PRN │
- echo │ To print READ.ME, type: COPY READ.ME PRN │
- echo └────────────────────────────────────────────────────────────┘
- echo\
- echo\
- :exitout
-